import request from "@/utils/request"
import commonJs from "@/utils/common"
import ports from "@/utils/ports"

export default {
  gets(data){
    return request({
      url: ports.admin.menu.gets,
      method: "post",
      data
    })
  },
  save(data){
    return request({
      url: ports.admin.menu.save,
      method: "post",
      data
    })
  },
  del(id){
    return request({
                     url: ports.admin.menu.del,
                     method:"post",
                     data:{
                       id
                     }
                   })
  },
}
